<!-- Title Field -->
<div class="form-group col-sm-12">
    {!! Form::label('title', '名称:') !!}
    {!! Form::text('title', null, ['class' => 'form-control']) !!}
</div>


<div class="form-group col-sm-6">
    {!! Form::label('cates', '可以查看的分类:') !!}
    @foreach($cates as $cate)
        {!! Form::checkbox('cates[]', $cate->id,isset($role)?(in_array($cate->id,$cat_ids)!==false?true:false):false) !!} {{$cate->parent->title}}-{{$cate->title}}
    @endforeach
</div>

<div class="form-group col-sm-6">
    {!! Form::label('labels', '可以查看的标签:') !!}
    @foreach($labels as $label)
        {!! Form::checkbox('labels[]', $label->id,isset($role)?(in_array($label->id,$label_ids)!==false?true:false):false) !!} {{$label->title}}
    @endforeach
</div>

<!-- Submit Field -->
<div class="form-group col-sm-12">
    {!! Form::submit('保存', ['class' => 'btn btn-primary']) !!}
    <a href="{!! route('roles.index') !!}" class="btn btn-default">取消</a>
</div>
